<?php

$page_title = "Fountain of Health";
$rank_check = 1;
include "header.inc.php";

// Start Check

$checking = "heal_pets";
$limit1 = 1800;
$timeLimit = "half hour";
if ($getInfo[premium] == 1) { $limit1 = 900; $timeLimit = "15 minutes"; }
$limit = $timestamp - $limit1;

$findCheck = fetch("SELECT * FROM checking2 WHERE userid = '$userid' AND check_what = '$checking' AND timestamp > '$limit' AND game = '$game'");

if ($findCheck[id])
{
	$statusLine = "<b>You cannot heal your pets now. Try back later.</b>";
}

if (!$findCheck[id])
{
	$statusLine = "<A href=heal_pets.pro.php?game=$game><font size=+2>Drink the water!</font></a>";
}

// End Check

echo <<<END

$openHTML

<br><b><font face=Arial size=2 color=#FF0000>Welcome to the River of Health. 
By drinking some of the magic water in this river, it will help heal your pets 
a certain amount. You are limited to come once every $timeLimit. :)</font></b>

<p align=center>$statusLine</p>

$closeHTML

END;

?>